home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / devel / tcl / tclx7_31.z / tclx7_31 / tcldev / tclX7.3a-p1 / tools / cphelpdir.sh < prev    next >
Encoding:
Text File  |  1993-11-19  |  1.3 KB  |  48 lines

  1. #
  2. # cphelpdir.sh --
  3. #
  4. # Script for copying a help tree from the source directory to the build 
  5. # directory.  If the source and build directories are the same, a warning
  6. # is issued.
  7. #
  8. # Arguments:
  9. #   $1 - source help directory.
  10. #   $2 - build help directory.
  11. #------------------------------------------------------------------------------
  12. # Copyright 1993 Karl Lehenbauer and Mark Diekhans.
  13. #
  14. # Permission to use, copy, modify, and distribute this software and its
  15. # documentation for any purpose and without fee is hereby granted, provided
  16. # that the above copyright notice appear in all copies.  Karl Lehenbauer and
  17. # Mark Diekhans make no representations about the suitability of this
  18. # software for any purpose.  It is provided "as is" without express or
  19. # implied warranty.
  20. #------------------------------------------------------------------------------
  21. # $Id: cphelpdir.sh,v 3.0 1993/11/19 06:59:52 markd Rel $
  22. #------------------------------------------------------------------------------
  23. #
  24.  
  25. SRC=$1
  26. BUILD=$2
  27. FOUND=notok
  28. if [ -d $SRC ]
  29. then
  30.     SRCBRF=`(cd $SRC; echo *.brf)`
  31.     if [  "$SRCBRF" != "*.brf" ]
  32.     then
  33.         FOUND=ok
  34.     fi
  35. fi
  36.  
  37. if [ "$FOUND" = "notok" ]
  38. then
  39.     echo "***"
  40.     echo "*** help files not found. Run \"make buildhelp\" to generate"
  41.     echo "***"
  42.     exit 1
  43. else
  44.     ../runtcl ../tools/instcopy -dirname $SRC $BUILD
  45.     exit $?
  46. fi
  47.  
  48.